Skip to main content
Version: 1.0.4

Get Card Details

The GET_CARD_DETAILS API provides a secure way to retrieve card details without exposing sensitive information. This API is designed to interact with XD Ledger while ensuring compliance with data protection policies.

Method: POST
{{URL}}/cardv2
Headers
NameValue
Content-Typeapplication/json

Example

Request Parameters
ParameterDescription
method
Mandatory
String
API method name
Constant value – "LEDGER_CARD_REQUEST"
id
Mandatory
String
Unique request identifier
reference
Optional
String
Unique reference ID of the request
transactionType
Mandatory
String
The type of Operation/transaction
Constant value – "GET_CARD_DETAILS"
customerId
Mandatory
String
Unique customer identifier
accountNumber
Mandatory
String
Account number linked to the Card
product
Mandatory
String
Name of the product associated with the card
Sample value – "DEFAULT"
channel
Mandatory
Enum
Processing channel through which the card transaction happens
Valid Values:
PULSE
VISADPS
Sample value –
"VISADPS"
program
Mandatory
String
Name of the program to which the card product is mapped
Sample value – "DEFAULT"
cardId
Mandatory
String
Unique identifier of the card
Sample value – "e09e3f57908041a2891da8ed90a17f26"
credential
Mandatory
String
API credential for authentication
signature
Mandatory
String
Signature for request validation
apiKey
Mandatory
String
API Key for authentication

curl --location 'http://localhost:5010/PL/cardv2' \
--header 'Signature: keyId=12009,algorithm=ecdsa-sha256,signature=MEUCIQC+3uXE6OT4o8ZJdOTmbz2CEh3zb6FE3faVvUmJ7L0BMAIgUJuCyx+zKEhruVWtKLcdNE8zkr+IvBMtrGWmqbb8s7E=' \
--header 'Content-Type: application/json' \
--data '{"method":"ledger.CARD.request","id":"1","params":{"api":{"credential":"Basic cmFqYXJlcEBuZXR4ZC5jb206MDM1Nzg2MmYxYTk4NDc3OGE0ZDU4NGE2YzBjYTMyNzM=","signature":"MEQCIAxYsqc6EzaeKfCvj/BBC621WKB8NuQZ0/FdcnJSnyV+AiAkcADTJStpy42g9uk/D2uEJXtFXGUyJIP5LEf7mpITJg==","apiKey":"0357862f1a984778a4d584a6c0ca3273"},"payload":{"reference":"REF-1632316373248","product":"DEFAULT","program":"DEFAULT","channel":"VISA_DPS","transactionType":"GET_CARD_DETAILS","customerId":"100000000004001","accountNumber":"123456775261215","cardId":"2ebf0a86229a441d94d6b1c3294cdaeb","cardHolderId":"CH00000000004001"}}}'

Body

{
"method": "ledger.CARD.request",
"id": "1",
"params": {
"payload": {
"reference": "DPSQA05627413",
"transactionType": "GET_CARD_DETAILS",
"customerId": "100000000019001",
"accountNumber": "653421207018416",
"product": "DEFAULT",
"channel": "VISA_DPS",
"program": "DEFAULT",
"cardId": "e01e4f57908041a1234da8ed90a15f28"
},
"api": {
"credential": "{{cred}}",
"signature": "{{signature}}",
"apiKey": "9999c17b8888123ab40c46631939c155"
}
}
}


Response: 200

Payload Parameters
ParameterDescription
idString
Response ID echoed from the request ID
Sample Value: "1"
api.typeString
Acknowledgment type
Sample value – "GET_CARD_DETAILS_ACK"
api.referenceString
Unique reference for the API response
Sample Value: "REFDPSQA05627413"
api.dateCreatedNumber
Unix Timestamp of the API response Created Time
"1740992543"
api. originalReferenceString
Original transaction reference ID from the Request
Sample Value: "DPSQA05627413"
cardDetails.cardIdString
Unique identifier of the card
Sample Value: "e01e4f57908041a1234da8ed90a15f28"
cardDetails.cardProductString
ID of the card product associated to the card
Sample Value: "2c6b841a-dfc1-4a6a-a12a-13c21035b5be"
cardDetails.createdDateString
Card creation date in ISO format
Sample Value: "2025-02-17T12:04:23.112Z"
cardDetails.updatedDateString
Last update timestamp in ISO format
Sample Value: "2025-02-17T12:47:50.55Z2025-02-17T12:47:50.55Z"
cardDetails.cardMaskNumberString
Masked card number (last 4 digits visible)
Sample Value: "****5354"
cardDetails.cardStatusString
Current status of the card
Sample Value: "ACTIVE"
cardDetails.orderStatusString
Card order status
Sample Value: "ORDER_PLACED"
cardDetails.orderIdString
Unique order identifier
Sample Value: "4UPFD1Q29Z2K000"
cardDetails.isReIssueBoolean
Indicates if the card is reissued
Sample Value: false
cardDetails.isReplaceBoolean
Indicates if the card is replaced
Sample Value: false
cardDetails.externalCardIdString
External reference ID from Visa for tracking
cardDetails.orderSubStatusString
Substatus that provides further details about the card order process that provides card order status provided from the Network
cardDetails.cardExpiryDateString
Expiry Date of the card (Format: YYYYMM)
Sample Value: "202702"

{
"id": "1",
"result": {
"api": {
"type": "GET_CARD_DETAILS_ACK",
"reference": "REFDPSQA05627413",
"dateCreated": 1740992543,
"originalReference": "DPSQA05627413"
},
"cardDetails": {
"cardId": "e01e4f57908041a1234da8ed90a15f28",
"cardProduct": "2c6b841a-dfc1-4a6a-a12a-13c21035b5be",
"createdDate": "2025-02-17T12:04:23.112Z",
"updatedDate": "2025-02-17T12:47:50.55Z",
"cardMaskNumber": "************5354",
"cardStatus": "ACTIVE",
"orderStatus": "ORDER_PLACED",
"orderId": "4UPFD1Q29Z2K000",
"isReIssue": false,
"isReplace": false,
"externalCardId": "v-402-e8786c8a-cf92-48b6-97fd-545805a106c8",
"orderSubStatus": "ORDER_PENDING"
"cardExpiryDate": "202702"
}
}
}